package main

import "fmt"

func main() {
	var a [3]int //int array with length 3
	fmt.Println(a)

	var a1 [3]int //int array with length 3
	a1[0] = 12 // array index starts at 0
	a1[1] = 78
	a1[2] = 50
	fmt.Println(a1)

	a2 := [3]int{12, 78, 50} // short hand declaration to create array
	fmt.Println(a2)

	a3 := [3]int{12}
	fmt.Println(a3)

	a4 := [...]int{12, 78, 50} // ... makes the compiler determine the length
	fmt.Println(a4)
}
